[INFO] crate connected_socket 0.0.6 is already in cache
[INFO] building connected_socket-0.0.6 against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] extracting crate connected_socket 0.0.6 into /workspace/builds/worker-8/source
[INFO] validating manifest of crates.io crate connected_socket 0.0.6 on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate connected_socket 0.0.6
[INFO] finished tweaking crates.io crate connected_socket 0.0.6
[INFO] tweaked toml for crates.io crate connected_socket 0.0.6 written to /workspace/builds/worker-8/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] ca4de921fc029c3cb9bea0d0c3154d1700ba9e3f1e4ccb5263ae746e1bd55876
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "ca4de921fc029c3cb9bea0d0c3154d1700ba9e3f1e4ccb5263ae746e1bd55876", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "ca4de921fc029c3cb9bea0d0c3154d1700ba9e3f1e4ccb5263ae746e1bd55876", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ca4de921fc029c3cb9bea0d0c3154d1700ba9e3f1e4ccb5263ae746e1bd55876", kill_on_drop: false }`
[INFO] [stdout] ca4de921fc029c3cb9bea0d0c3154d1700ba9e3f1e4ccb5263ae746e1bd55876
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 67a98227cee4b60be21d255c23c29709267efefeefb1ea7f3d71798a21718835
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "67a98227cee4b60be21d255c23c29709267efefeefb1ea7f3d71798a21718835", kill_on_drop: false }`
[INFO] [stderr]    Compiling const_fn v0.4.8
[INFO] [stderr]    Compiling byteorder v0.3.13
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling time v0.2.26
[INFO] [stderr]    Compiling syn v1.0.72
[INFO] [stderr]    Compiling time-macros-impl v0.1.1
[INFO] [stderr]    Compiling time-macros v0.1.1
[INFO] [stderr]    Compiling connected_socket v0.0.6 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc`
[INFO] [stdout]  --> src/lib.rs:5:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | use libc::funcs::bsd43::connect;
[INFO] [stdout]   |           ^^^^^ could not find `funcs` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:18:11
[INFO] [stdout]    |
[INFO] [stdout] 18 | use libc::types::os::common::bsd44::socklen_t;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:19:11
[INFO] [stdout]    |
[INFO] [stdout] 19 | use libc::types::os::common::bsd44::sockaddr_in;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:20:11
[INFO] [stdout]    |
[INFO] [stdout] 20 | use libc::types::os::common::bsd44::sockaddr_in6;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:21:11
[INFO] [stdout]    |
[INFO] [stdout] 21 | use libc::types::os::common::bsd44::in_addr;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:22:11
[INFO] [stdout]    |
[INFO] [stdout] 22 | use libc::types::os::common::bsd44::in6_addr;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:23:11
[INFO] [stdout]    |
[INFO] [stdout] 23 | use libc::types::os::common::bsd44::sa_family_t;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:24:11
[INFO] [stdout]    |
[INFO] [stdout] 24 | use libc::types::os::common::posix01::timeval;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc`
[INFO] [stdout]   --> src/lib.rs:25:11
[INFO] [stdout]    |
[INFO] [stdout] 25 | use libc::funcs::bsd43::setsockopt;
[INFO] [stdout]    |           ^^^^^ could not find `funcs` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]   --> src/lib.rs:26:11
[INFO] [stdout]    |
[INFO] [stdout] 26 | use libc::consts::os::bsd44::SOL_SOCKET;
[INFO] [stdout]    |           ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]   --> src/lib.rs:27:11
[INFO] [stdout]    |
[INFO] [stdout] 27 | use libc::consts::os::bsd44::AF_INET;
[INFO] [stdout]    |           ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `consts` in `libc`
[INFO] [stdout]   --> src/lib.rs:28:11
[INFO] [stdout]    |
[INFO] [stdout] 28 | use libc::consts::os::bsd44::AF_INET6;
[INFO] [stdout]    |           ^^^^^^ could not find `consts` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:29:11
[INFO] [stdout]    |
[INFO] [stdout] 29 | use libc::types::os::arch::c95::c_int;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:30:11
[INFO] [stdout]    |
[INFO] [stdout] 30 | use libc::types::os::arch::c95::c_char;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `types` in `libc`
[INFO] [stdout]   --> src/lib.rs:31:11
[INFO] [stdout]    |
[INFO] [stdout] 31 | use libc::types::common::c95::c_void;
[INFO] [stdout]    |           ^^^^^ could not find `types` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc`
[INFO] [stdout]   --> src/lib.rs:32:11
[INFO] [stdout]    |
[INFO] [stdout] 32 | use libc::funcs::bsd43::send;
[INFO] [stdout]    |           ^^^^^ could not find `funcs` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc`
[INFO] [stdout]   --> src/lib.rs:33:11
[INFO] [stdout]    |
[INFO] [stdout] 33 | use libc::funcs::bsd43::recv;
[INFO] [stdout]    |           ^^^^^ could not find `funcs` in `libc`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]   --> src/lib.rs:38:19
[INFO] [stdout]    |
[INFO] [stdout] 38 | const SO_RCVTIMEO:c_int = 20;
[INFO] [stdout]    |                   ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 5  | use std::os::raw::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]   --> src/lib.rs:41:23
[INFO] [stdout]    |
[INFO] [stdout] 41 |     fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int;
[INFO] [stdout]    |                          ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 5  | use std::os::raw::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_char` in this scope
[INFO] [stdout]   --> src/lib.rs:41:42
[INFO] [stdout]    |
[INFO] [stdout] 41 |     fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int;
[INFO] [stdout]    |                                             ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: a builtin type with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 41 |     fn inet_pton(family: c_int, src: *const char, dst: *mut c_void) -> c_int;
[INFO] [stdout]    |                                             ^^^^
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::c_char;
[INFO] [stdout]    |
[INFO] [stdout] 5  | use std::os::raw::c_char;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stdout]   --> src/lib.rs:41:60
[INFO] [stdout]    |
[INFO] [stdout] 41 |     fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int;
[INFO] [stdout]    |                                                               ^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::c_void;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]   --> src/lib.rs:41:71
[INFO] [stdout]    |
[INFO] [stdout] 41 |     fn inet_pton(family: c_int, src: *const c_char, dst: *mut c_void) -> c_int;
[INFO] [stdout]    |                                                                          ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 5  | use std::os::raw::c_int;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope
[INFO] [stdout]   --> src/lib.rs:76:5
[INFO] [stdout]    |
[INFO] [stdout] 76 |     V4(sockaddr_in),
[INFO] [stdout]    |        ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::sockaddr_in;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope
[INFO] [stdout]   --> src/lib.rs:77:5
[INFO] [stdout]    |
[INFO] [stdout] 77 |     V6(sockaddr_in6),
[INFO] [stdout]    |        ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::sockaddr_in6;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sockaddr_in` in this scope
[INFO] [stdout]   --> src/lib.rs:82:25
[INFO] [stdout]    |
[INFO] [stdout] 75 | enum SockaddrIn {
[INFO] [stdout]    | --------------- similarly named enum `SockaddrIn` defined here
[INFO] [stdout] ...
[INFO] [stdout] 82 | fn new_sockaddr_in() -> sockaddr_in {
[INFO] [stdout]    |                         ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 82 | fn new_sockaddr_in() -> SockaddrIn {
[INFO] [stdout]    |                         ^^^^^^^^^^
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::sockaddr_in;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in` in this scope
[INFO] [stdout]   --> src/lib.rs:83:2
[INFO] [stdout]    |
[INFO] [stdout] 83 |     sockaddr_in {
[INFO] [stdout]    |     ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::sockaddr_in;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `AF_INET` in this scope
[INFO] [stdout]   --> src/lib.rs:84:15
[INFO] [stdout]    |
[INFO] [stdout] 84 |         sin_family: AF_INET as sa_family_t,
[INFO] [stdout]    |                     ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::AF_INET;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope
[INFO] [stdout]   --> src/lib.rs:84:26
[INFO] [stdout]    |
[INFO] [stdout] 84 |         sin_family: AF_INET as sa_family_t,
[INFO] [stdout]    |                                ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::sa_family_t;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in_addr` in this scope
[INFO] [stdout]   --> src/lib.rs:87:15
[INFO] [stdout]    |
[INFO] [stdout] 87 |         sin_addr:   in_addr {
[INFO] [stdout]    |                     ^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 5  | use libc::in_addr;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sockaddr_in6` in this scope
[INFO] [stdout]    --> src/lib.rs:109:26
[INFO] [stdout]     |
[INFO] [stdout] 75  | enum SockaddrIn {
[INFO] [stdout]     | --------------- similarly named enum `SockaddrIn` defined here
[INFO] [stdout] ...
[INFO] [stdout] 109 | fn new_sockaddr_in6() -> sockaddr_in6 {
[INFO] [stdout]     |                          ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: an enum with a similar name exists
[INFO] [stdout]     |
[INFO] [stdout] 109 | fn new_sockaddr_in6() -> SockaddrIn {
[INFO] [stdout]     |                          ^^^^^^^^^^
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::sockaddr_in6;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `sockaddr_in6` in this scope
[INFO] [stdout]    --> src/lib.rs:110:2
[INFO] [stdout]     |
[INFO] [stdout] 110 |     sockaddr_in6 {
[INFO] [stdout]     |     ^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::sockaddr_in6;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `AF_INET6` in this scope
[INFO] [stdout]    --> src/lib.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout] 111 |         sin6_family:   AF_INET6 as sa_family_t,
[INFO] [stdout]     |                        ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::AF_INET6;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `sa_family_t` in this scope
[INFO] [stdout]    --> src/lib.rs:111:30
[INFO] [stdout]     |
[INFO] [stdout] 111 |         sin6_family:   AF_INET6 as sa_family_t,
[INFO] [stdout]     |                                    ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::sa_family_t;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `in6_addr` in this scope
[INFO] [stdout]    --> src/lib.rs:115:16
[INFO] [stdout]     |
[INFO] [stdout] 115 |         sin6_addr:   in6_addr {
[INFO] [stdout]     |                      ^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::in6_addr;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]    --> src/lib.rs:150:35
[INFO] [stdout]     |
[INFO] [stdout] 150 |                     inet_pton(addr.sin_family as c_int,
[INFO] [stdout]     |                                                  ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::c_int;
[INFO] [stdout]     |
[INFO] [stdout] 5   | use std::os::raw::c_int;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_int` in this scope
[INFO] [stdout]    --> src/lib.rs:169:36
[INFO] [stdout]     |
[INFO] [stdout] 169 |                     inet_pton(addr.sin6_family as c_int,
[INFO] [stdout]     |                                                   ^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::c_int;
[INFO] [stdout]     |
[INFO] [stdout] 5   | use std::os::raw::c_int;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope
[INFO] [stdout]    --> src/lib.rs:203:39
[INFO] [stdout]     |
[INFO] [stdout] 203 |                 let len = mem::size_of_val(&s) as socklen_t;
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::socklen_t;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `connect` in this scope
[INFO] [stdout]    --> src/lib.rs:205:5
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 connect(fd, mem::transmute(&*addrp), len)
[INFO] [stdout]     |                 ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to call the method
[INFO] [stdout]     |
[INFO] [stdout] 205 |                 self.connect(fd, mem::transmute(&*addrp), len)
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::connect;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope
[INFO] [stdout]    --> src/lib.rs:208:39
[INFO] [stdout]     |
[INFO] [stdout] 208 |                 let len = mem::size_of_val(&s) as socklen_t;
[INFO] [stdout]     |                                                   ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::socklen_t;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `connect` in this scope
[INFO] [stdout]    --> src/lib.rs:210:5
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 connect(fd, mem::transmute(&*addrp), len)
[INFO] [stdout]     |                 ^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: you might have meant to call the method
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 self.connect(fd, mem::transmute(&*addrp), len)
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::connect;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stdout]    --> src/lib.rs:226:38
[INFO] [stdout]     |
[INFO] [stdout] 226 |         let ptr = buf.as_mut_ptr() as *mut c_void;
[INFO] [stdout]     |                                            ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::c_void;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `recv` in this scope
[INFO] [stdout]    --> src/lib.rs:229:4
[INFO] [stdout]     |
[INFO] [stdout] 229 |             recv(self.as_raw_fd(), ptr, buf.len() as u64, flags)
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::recv;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `c_void` in this scope
[INFO] [stdout]    --> src/lib.rs:244:36
[INFO] [stdout]     |
[INFO] [stdout] 244 |         let ptr = buf.as_ptr() as *const c_void;
[INFO] [stdout]     |                                          ^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::c_void;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `send` in this scope
[INFO] [stdout]    --> src/lib.rs:247:4
[INFO] [stdout]     |
[INFO] [stdout] 247 |             send(self.as_raw_fd(), ptr, buf.len() as u64, flags)
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::send;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `timeval` in this scope
[INFO] [stdout]    --> src/lib.rs:267:12
[INFO] [stdout]     |
[INFO] [stdout] 267 |         let tv = timeval {
[INFO] [stdout]     |                  ^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::timeval;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `setsockopt` in this scope
[INFO] [stdout]    --> src/lib.rs:273:4
[INFO] [stdout]     |
[INFO] [stdout] 273 |             setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO,
[INFO] [stdout]     |             ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::setsockopt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `SOL_SOCKET` in this scope
[INFO] [stdout]    --> src/lib.rs:273:33
[INFO] [stdout]     |
[INFO] [stdout] 273 |             setsockopt(self.as_raw_fd(), SOL_SOCKET, SO_RCVTIMEO,
[INFO] [stdout]     |                                          ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::SOL_SOCKET;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `socklen_t` in this scope
[INFO] [stdout]    --> src/lib.rs:274:51
[INFO] [stdout]     |
[INFO] [stdout] 274 |                 mem::transmute(&tv), mem::size_of_val(&tv) as socklen_t)
[INFO] [stdout]     |                                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this type alias
[INFO] [stdout]     |
[INFO] [stdout] 5   | use libc::socklen_t;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:193:14
[INFO] [stdout]     |
[INFO] [stdout] 193 |         let addr = try!(address.to_socket_addrs()).next();
[INFO] [stdout]     |                    ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead
[INFO] [stdout]    --> src/lib.rs:199:15
[INFO] [stdout]     |
[INFO] [stdout] 199 |         let saddr = try!(addr.unwrap().into_sockaddr_in());
[INFO] [stdout]     |                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the size for values of type `Self` cannot be known at compilation time
[INFO] [stdout]    --> src/lib.rs:186:59
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn connect<A: ToSocketAddrs + ?Sized>(self, addr: &A) -> Result<ConnectedSocket<Self>,Error>;
[INFO] [stdout]     |                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
[INFO] [stdout]     |
[INFO] [stdout] note: required because it appears within the type `ConnectedSocket<Self>`
[INFO] [stdout]    --> src/lib.rs:44:12
[INFO] [stdout]     |
[INFO] [stdout] 44  | pub struct ConnectedSocket<S: ?Sized> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] help: consider further restricting `Self`
[INFO] [stdout]     |
[INFO] [stdout] 186 |     fn connect<A: ToSocketAddrs + ?Sized>(self, addr: &A) -> Result<ConnectedSocket<Self>,Error> where Self: Sized;
[INFO] [stdout]     |                                                                                                  ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 49 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0422, E0425, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `connected_socket`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "67a98227cee4b60be21d255c23c29709267efefeefb1ea7f3d71798a21718835", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67a98227cee4b60be21d255c23c29709267efefeefb1ea7f3d71798a21718835", kill_on_drop: false }`
[INFO] [stdout] 67a98227cee4b60be21d255c23c29709267efefeefb1ea7f3d71798a21718835
